#ifndef MYSERVER_H
#define MYSERVER_H

#include <QObject>
#include <QTcpServer>
class MyThread;

class MyServer : public QTcpServer
{
Q_OBJECT
public:
    MyServer(QObject *parent=nullptr);

    // QTcpServer interface
protected:
    void incomingConnection(qintptr socketDescriptor);

signals:
    void updateListItem();

private slots:
    void onUpdateListItem();

    void onCloseThread(MyThread *thread);

};

#endif // MYSERVER_H
